<?php

/**
 * lodging components.
 *
 * @package    SchelkinoBiz
 * @subpackage welcome
 * @author     Delight
 */
class welcomeComponents extends sfComponents
{

    public function executeNewsblock(sfWebRequest $request)
    {
        $cri = new Criteria();

        $cri->addDescendingOrderByColumn( NewsblockPeer::NEWS_DATE );

        $this->news = NewsblockPeer::doSelectWithI18n( $cri );
    }

}
